var itemPage = avalon.define({
	$id: "itemPage",
	solutionitem: {
		title: "",
		description: "",
		productList: []
	}

});

mui.ready(function() {
	var sid = $.getParameter("sid");
	var mui_item = mui('#item');
	mui.init({
		pullRefresh: {
			container: "#item",
			down: {
				height: 50,
				auto: true,
				contentdown: $.i18n.contentDown,
				contentover: $.i18n.contentOver,
				contentrefresh: $.i18n.contentRefresh,
				callback: function() {
					setTimeout(function() {
						mui.ajax('/solution/item.json', {
							data: {
								sid: sid
							},
							dataType: 'json',
							success: function(data) {
								itemPage.solutionitem = data;
								$("#description").html("");
								$("#description").append(itemPage.solutionitem.description);
								mui_item.pullRefresh().endPulldownToRefresh();
							}
						});
					}, window.DAHUA_CONFIG.LOADING_TIME);

				}
			}
		}
	});

});